package com.demo8;

public class Chinese {
    private String  province = "河南";

    private class HeNan{
        public void show(){
            System.out.println(province);
        }
    }


    public void getProvince(){
        HeNan hn = new HeNan();
        hn.show();
    }

    public Guangzhou getG(){
        return new Guangzhou(){
            @Override
            public void show() {
                System.out.println("说广州话吧,匿名内部类");
            }
        };
    }
}
